package com.peace.hospital.entity.drugstorage;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.peace.hospital.entity.common.Staffinfo;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.sql.Date;
import java.time.LocalDateTime;

/**
 * <p>
 * 入库单表
 * </p>
 *
 * @author xie
 * @since 2019-11-12
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class Waentry implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 入库id
     */
    @TableId(value = "waeid", type = IdType.AUTO)
    private Integer waeid;

    /**
     * 员工编号
     */
    private Integer staid;

    /**
     * 入库日期
     */
    private Date waedate;

//    /**
//     * 进货价格
//     */
//    private Long waeprice;
//
//    /**
//     * 进货数量
//     */
//    private Integer waenum;

//    /**
//     * 生产日期
//     */
//    private LocalDateTime waedateman;
//
//    /**
//     * 有效期
//     */
//    private LocalDateTime waetermval;

    /**
     * 入库单 数据库名称
     */
    private String waedbsource;
    private Staffinfo staffinfo;

    public static long getSerialVersionUID() {
        return serialVersionUID;
    }

    public Integer getWaeid() {
        return waeid;
    }

    public void setWaeid(Integer waeid) {
        this.waeid = waeid;
    }

    public Integer getStaid() {
        return staid;
    }

    public void setStaid(Integer staid) {
        this.staid = staid;
    }

    public Date getWaedate() {
        return waedate;
    }

    public void setWaedate(Date waedate) {
        this.waedate = waedate;
    }

    public String getWaedbsource() {
        return waedbsource;
    }

    public void setWaedbsource(String waedbsource) {
        this.waedbsource = waedbsource;
    }

    public Staffinfo getStaffinfo() {
        return staffinfo;
    }

    public void setStaffinfo(Staffinfo staffinfo) {
        this.staffinfo = staffinfo;
    }

    @Override
    public String toString() {
        return "Waentry{" +
                "waeid=" + waeid +
                ", staid=" + staid +
                ", waedate=" + waedate +
                ", waedbsource='" + waedbsource + '\'' +
                ", staffinfo=" + staffinfo +
                '}';
    }
}
